package com.meiborte.mapper;

import com.meiborte.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;

@Mapper
public interface UserMapper {
    @Select("select * from users where username = #{username} and password = #{password}")
    User getUsernameAndPassword(@Param("username") String username, @Param("password") String password);


    User findByUsername(String username);

}